package com.ruoyi.project.module.api.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.module.api.common.utils.ApiResult;
import com.ruoyi.project.module.api.service.SearchParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/api/param")
@Api("参数接口")
public class AppSearchParamController extends BaseController {

    @Autowired
    private SearchParamService searchParamService;


    @GetMapping("/list")
    @ResponseBody
    @ApiOperation("参数列表")
    public ApiResult list() {
        return ApiResult.ok(searchParamService.getSearchParams());
    }

}
